package com.amxing.spider.task;

import java.util.Arrays;

/**
 * @auther amxing
 * @desc
 * @createTime 2018/8/12 14:31
 */
public enum TaskStrategy {
    /*QCC("企查查", CoSearchTask.class*//*, CoInfoCleanTask.class*//*),
    IP("IP爬去", IpTask.class);*/
    ;

    private Class<? extends Task>[] taskQueue;

    private String desc;

    TaskStrategy(String desc, Class<? extends Task>... c) {
        this.desc = desc;
        this.taskQueue = c;
    }

    public String getDesc() {
        return desc;
    }

    public TaskQueue<Class<? extends Task>> getTaskQueue() {
        return new TaskQueue<>(Arrays.asList(taskQueue));
    }
}
